﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace gerecord.Command
{
    //
    public class UpdateCommand<TKey, TEntity>:ICommand, IMemoryVersion
    {
        public int ID { get { return CommandList.Update; } }

        public string Seq { get; set; }

        public long WhereMVserion { get; set; }

        public long MVersion { get; set; }
        //Key 如果找不到会发送从上游服务器(持久化服务器)查询返回
        public TKey Key { get; set; }

        public TEntity Entity { get; set; }
    }
}
